import request from '@/utils/request'

const getTradeList = ({ page, limit }) => {
  return request({ url: `/kerwin/admin/product/baseTrademark/${page}/${limit}` })
}
const updateOrSaveTrade = (data) => {
  if (data.id) {
    return request({ url: '/kerwin/admin/product/baseTrademark/update', method: 'PUT', data: data })
  } else {
    return request({ url: '/kerwin/admin/product/baseTrademark/save', method: 'POST', data: data })
  }
}
const deleteTrade = (id) => {
  return request({ url: `/kerwin/admin/product/baseTrademark/remove/${id}`, method: 'DELETE' })
}
export {
  getTradeList, updateOrSaveTrade, deleteTrade
}
